import Layout from '@/layout'

const projectControl = {
  path: '/projectControl',
  component: Layout,
  children: [
    // 项目清单
    {
      path: 'project-control-list',
      component: () => import('@/views/projectControl/projectControlList/index'),
      name: 'projectControlList',
      meta: { title: '项目清单', icon: 'el-icon-user-solid', noCache: false }
    },
    {
      path: 'enterpriseRecords',
      component: () => import('@/views/projectInspection/enterpriseRecords'),
      name: 'enterpriseRecords',
      meta: { title: '分配企业记录', icon: 'el-icon-user-solid', noCache: true }
    },
    {
      path: 'enterpriseRecordsDetail',
      component: () => import('@/views/projectInspection/enterpriseRecords/components/detailDialog'),
      name: 'enterpriseRecordsDetail',
      meta: { title: '分配企业记录详情', icon: 'el-icon-user-solid', noCache: true }
    },
    // 已分配项目
    {
      path: 'project-control-assigned',
      component: () => import('@/views/projectControl/projectControlAssigned/index'),
      name: 'projectControlAssigned',
      meta: { title: '已分配项目', icon: 'el-icon-user-solid', noCache: false }
    },
    {
      path: 'patrol-project-add',
      component: () => import('@/views/projectControl/projectControlAssigned/components/patrolProjectAdd'),
      name: 'patrolProjectAdd',
      meta: { title: '添加分配项目', icon: 'el-icon-user-solid', noCache: false }
    },
    {
      path: 'personnelRecordsDetail',
      component: () => import('@/views/projectInspection/personnelRecords/components/detailDialog'),
      name: 'personnelRecordsDetail',
      meta: { title: '分配人员记录详情', icon: 'el-icon-user-solid', noCache: true }
    },
    // 已巡检项目
    {
      path: 'project-control-patrolled',
      component: () => import('@/views/projectControl/projectControlPatrolled/index'),
      name: 'projectControlPatrolled',
      meta: { title: '已分配项目', icon: 'el-icon-user-solid', noCache: false }
    },
    {
      path: 'project-control-detail',
      component: () => import('@/views/projectControl/projectControlAssigned/components/detailChild'),
      name: 'projectControlDetail',
      meta: { title: '已分配项目详情', icon: 'el-icon-user-solid', noCache: false }
    },
    {
      path: 'personnelRecords',
      component: () => import('@/views/projectInspection/personnelRecords'),
      name: 'personnelRecords',
      meta: { title: '分配人员记录', icon: 'el-icon-user-solid', noCache: true }
    }
  ]
}
export default projectControl
